This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Mar 11, 2011, 3:45 PM
261 Posts

Re: Can I define label/value pairs for selectitems for a combobox?

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 3
On the "Values" properties box of the combobox control, add a "Formula Item". The formula you write should return an array of strings. Every string in the array can have a label and value if you add a pipe (|) character to it, e.g.:
 
[
  "label1|value1",
 "label2|value2"
]
 
In the pre-XPages era, this syntax was also used to add values to a combobox on a Form.
 
Mark
Mar 12, 2011, 1:14 AM
22 Posts
Perfect! Thanks Mark!
I didn't realize that that strategy held over for XPages as well.
Lesson learned - Thanks very much!! 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal